<local:DocumentBase  x:Class="WPFExcelReport.FHTRQI03"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                     xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                      xmlns:MAH="http://metro.mahapps.com/winfx/xaml/controls"
                       xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS" 
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBBST"  
                    xmlns:AM="clr-namespace:WPFExcelReport;assembly=TAMSTAMM"  
                     xmlns:HR="clr-namespace:WPFExcelReport;assembly=THRSTAMM" 
                     FontFamily="SimSun"
                     Height="768"
                     Width="1024"
                    Name="TV"
                    Loaded="Window_Loaded"
>
    
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/> 
    </local:DocumentBase.Resources> 
    <Grid> 
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions> 
            <AM:TSBDE Name="cAM" 
                      Grid.Row="0" Grid.RowSpan="2" 
                    Visibility="{Binding IsMachineReady,ElementName=cAM,Converter={StaticResource nbv}}"
                  IsMachineReady="False" />  
       
        <WB:TFHTQI03 Grid.Row="1" 
                   Name="cQI03" 
                   IsOneBELGE="True"
                   PRNLB="SYHWBLABLE"
                   Visibility="{Binding IsMachineReady,ElementName=cAM,Converter={StaticResource bv}}"
                   IsMachineReady="{Binding IsMachineReady,ElementName=cAM}"
                    MACHINEID="{Binding KEY,ElementName=cAM}" 
                    SHIFT="{Binding SHIFT,ElementName=cAM}"
                    WH="01ZZ01      " 
            />
        <WrapPanel Grid.Row="2">
            <AM:TCOMYBJ
                DevTyp="CCS280"
                COMn="COM1"
                CBaudRate="9600"
                CStopBits="1"
                CDataBits="8"
                CParity="0"
                IsSimulate="False"
                QTY="{Binding CMTR,ElementName=cQI03}"
                IsMachineReady="{Binding IsMachineReady,ElementName=cAM}"
                />
            <HR:THR20QI EXAUF="{Binding CUSER,ElementName=cQI03}"/>
        </WrapPanel>
    </Grid>
</local:DocumentBase>
    
